package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 sys_order
 * 
 * @author ruoyi
 * @date 2021-10-22
 */
public class SysOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long orderId;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long userId;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreateDate;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderUpdateDate;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderPrice;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderRemark;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 订单状态(1:已提交 2:已支付 3:已取消 4:已完成) */
    @Excel(name = "订单状态(1:已提交 2:已支付 3:已取消 4:已完成)")
    private Integer orderState;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderCreateDate(Date orderCreateDate) 
    {
        this.orderCreateDate = orderCreateDate;
    }

    public Date getOrderCreateDate() 
    {
        return orderCreateDate;
    }
    public void setOrderUpdateDate(Date orderUpdateDate) 
    {
        this.orderUpdateDate = orderUpdateDate;
    }

    public Date getOrderUpdateDate() 
    {
        return orderUpdateDate;
    }
    public void setOrderPrice(BigDecimal orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getOrderPrice() 
    {
        return orderPrice;
    }
    public void setOrderRemark(String orderRemark) 
    {
        this.orderRemark = orderRemark;
    }

    public String getOrderRemark() 
    {
        return orderRemark;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setOrderState(Integer orderState) 
    {
        this.orderState = orderState;
    }

    public Integer getOrderState() 
    {
        return orderState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("orderCreateDate", getOrderCreateDate())
            .append("orderUpdateDate", getOrderUpdateDate())
            .append("orderPrice", getOrderPrice())
            .append("orderRemark", getOrderRemark())
            .append("orderNum", getOrderNum())
            .append("orderState", getOrderState())
            .toString();
    }
}
